import { get, post } from '@/server/http';
// 用户登陆 API

// 1.登陆
export const userLginAPI = (data) => post('common/user/loginByPassword', data);
// 2.注册
export const userRegisterAPI = (data) => post(`common/user/register`, data);
// 3.找回密码
export const userRetrievePasswordAPI = (email) => get(`common/user/detectEmail/${email}`);
// 4.重置密码
export const userResetPasswordAPI = (data) => post(`common/user/retrievePassword`, data);
// 5.获取验证吗
export const userGetCodeAPI = (email) => get(`common/user/getCode/${email}`);



